Skip to content

Fix toString for Scala 3 enums with no parameters#181

Closed
kubukoz wants to merge 3 commits into
mainfrom
fix-60
Closed

Fix toString for Scala 3 enums with no parameters#181
kubukoz wants to merge 3 commits into
mainfrom
fix-60

Conversation

@kubukoz
Copy link
Copy Markdown
Member

@kubukoz kubukoz commented Jan 19, 2024

I'll have to ponder on this for a sec. At the moment, it "kinda works" because the toString is added both to the enum root and its non-$anon members. A proper fix, I think, would add it to all its members, and use productPrefix for the $anon ones.

@kubukoz kubukoz changed the title Fix toString for Scala 3 enums Fix toString for Scala 3 enums with no parameters Jan 19, 2024
@kubukoz
Copy link
Copy Markdown
Member Author

kubukoz commented May 5, 2026

I'm slowly transitioning away from using better-tostring in my things, and even if I'm not, this isn't a useful enough thing to warrant potentially breaking consumers.

@kubukoz kubukoz closed this May 5, 2026
@kubukoz kubukoz deleted the fix-60 branch May 5, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant